package com.apiauto.pojo;

/**
 * PS:用例实体类
 * 
 * @author lkk
 *
 */
public class Case {
	// 接口编号
	private String apiNum;
	// 用例编号
	private String caseNum;
	// 用例名
	private String caseName;
	// 请求头部信息
	private String requestHeaders;
	// 请求数据类型
	private String requestDataType;
	// 请求数据
	private String requestData;
	// 检查点
	private String checkPoint;
	// 预期响应结果
	private String expectResponseResult;
	// 实际响应结果
	private String actualResponseResult;
	// 关联字段
	private String correlation;
	// 检查SQL语句
	private String checkExcuteSql;
	// 执行前结果
	private String pre_ExecutionResults;
	// 执行后结果
	private String post_ExecutionResults;

	public String getApiNum() {
		return apiNum;
	}

	public void setApiNum(String apiNum) {
		this.apiNum = apiNum;
	}

	public String getCaseNum() {
		return caseNum;
	}

	public void setCaseNum(String caseNum) {
		this.caseNum = caseNum;
	}

	public String getCaseName() {
		return caseName;
	}

	public void setCaseName(String caseName) {
		this.caseName = caseName;
	}
	
	public String getRequestHeaders() {
		return requestHeaders;
	}

	public void setRequestHeaders(String requestHeaders) {
		this.requestHeaders = requestHeaders;
	}

	public String getRequestDataType() {
		return requestDataType;
	}

	public void setRequestDataType(String requestDataType) {
		this.requestDataType = requestDataType;
	}

	public String getRequestData() {
		return requestData;
	}

	public void setRequestData(String requestData) {
		this.requestData = requestData;
	}

	public String getCheckPoint() {
		return checkPoint;
	}

	public void setCheckPoint(String checkPoint) {
		this.checkPoint = checkPoint;
	}

	public String getExpectResponseResult() {
		return expectResponseResult;
	}

	public void setExpectResponseResult(String expectResponseResult) {
		this.expectResponseResult = expectResponseResult;
	}

	public String getActualResponseResult() {
		return actualResponseResult;
	}

	public void setActualResponseResult(String actualResponseResult) {
		this.actualResponseResult = actualResponseResult;
	}

	public String getCorrelation() {
		return correlation;
	}

	public void setCorrelation(String correlation) {
		this.correlation = correlation;
	}

	public String getCheckExcuteSql() {
		return checkExcuteSql;
	}

	public void setCheckExcuteSql(String checkExcuteSql) {
		this.checkExcuteSql = checkExcuteSql;
	}

	public String getPre_ExecutionResults() {
		return pre_ExecutionResults;
	}

	public void setPre_ExecutionResults(String pre_ExecutionResults) {
		this.pre_ExecutionResults = pre_ExecutionResults;
	}

	public String getPost_ExecutionResults() {
		return post_ExecutionResults;
	}

	public void setPost_ExecutionResults(String post_ExecutionResults) {
		this.post_ExecutionResults = post_ExecutionResults;
	}

	@Override
	public String toString() {
		return "Case [apiNum=" + apiNum + ", caseNum=" + caseNum + ", caseName=" + caseName + ", requestHeaders="
				+ requestHeaders + ", requestDataType=" + requestDataType + ", requestData=" + requestData
				+ ", checkPoint=" + checkPoint + ", expectResponseResult=" + expectResponseResult
				+ ", actualResponseResult=" + actualResponseResult + ", correlation=" + correlation
				+ ", checkExcuteSql=" + checkExcuteSql + ", pre_ExecutionResults=" + pre_ExecutionResults
				+ ", post_ExecutionResults=" + post_ExecutionResults + "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((actualResponseResult == null) ? 0 : actualResponseResult.hashCode());
		result = prime * result + ((apiNum == null) ? 0 : apiNum.hashCode());
		result = prime * result + ((caseName == null) ? 0 : caseName.hashCode());
		result = prime * result + ((caseNum == null) ? 0 : caseNum.hashCode());
		result = prime * result + ((checkExcuteSql == null) ? 0 : checkExcuteSql.hashCode());
		result = prime * result + ((checkPoint == null) ? 0 : checkPoint.hashCode());
		result = prime * result + ((correlation == null) ? 0 : correlation.hashCode());
		result = prime * result + ((expectResponseResult == null) ? 0 : expectResponseResult.hashCode());
		result = prime * result + ((post_ExecutionResults == null) ? 0 : post_ExecutionResults.hashCode());
		result = prime * result + ((pre_ExecutionResults == null) ? 0 : pre_ExecutionResults.hashCode());
		result = prime * result + ((requestData == null) ? 0 : requestData.hashCode());
		result = prime * result + ((requestDataType == null) ? 0 : requestDataType.hashCode());
		result = prime * result + ((requestHeaders == null) ? 0 : requestHeaders.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Case other = (Case) obj;
		if (actualResponseResult == null) {
			if (other.actualResponseResult != null)
				return false;
		} else if (!actualResponseResult.equals(other.actualResponseResult))
			return false;
		if (apiNum == null) {
			if (other.apiNum != null)
				return false;
		} else if (!apiNum.equals(other.apiNum))
			return false;
		if (caseName == null) {
			if (other.caseName != null)
				return false;
		} else if (!caseName.equals(other.caseName))
			return false;
		if (caseNum == null) {
			if (other.caseNum != null)
				return false;
		} else if (!caseNum.equals(other.caseNum))
			return false;
		if (checkExcuteSql == null) {
			if (other.checkExcuteSql != null)
				return false;
		} else if (!checkExcuteSql.equals(other.checkExcuteSql))
			return false;
		if (checkPoint == null) {
			if (other.checkPoint != null)
				return false;
		} else if (!checkPoint.equals(other.checkPoint))
			return false;
		if (correlation == null) {
			if (other.correlation != null)
				return false;
		} else if (!correlation.equals(other.correlation))
			return false;
		if (expectResponseResult == null) {
			if (other.expectResponseResult != null)
				return false;
		} else if (!expectResponseResult.equals(other.expectResponseResult))
			return false;
		if (post_ExecutionResults == null) {
			if (other.post_ExecutionResults != null)
				return false;
		} else if (!post_ExecutionResults.equals(other.post_ExecutionResults))
			return false;
		if (pre_ExecutionResults == null) {
			if (other.pre_ExecutionResults != null)
				return false;
		} else if (!pre_ExecutionResults.equals(other.pre_ExecutionResults))
			return false;
		if (requestData == null) {
			if (other.requestData != null)
				return false;
		} else if (!requestData.equals(other.requestData))
			return false;
		if (requestDataType == null) {
			if (other.requestDataType != null)
				return false;
		} else if (!requestDataType.equals(other.requestDataType))
			return false;
		if (requestHeaders == null) {
			if (other.requestHeaders != null)
				return false;
		} else if (!requestHeaders.equals(other.requestHeaders))
			return false;
		return true;
	}

}
